import request from '@/utils/request'

// 查询入库清单列表
export function listInInfo(warehouseInId) {
  return request({
    url: '/stock/InInfo/list',
    method: 'get',
    params: {
      warehouseInId
    }
  })
}

// 查询入库清单详细
export function getInInfo(id) {
  return request({
    url: '/stock/InInfo/' + id,
    method: 'get'
  })
}

// 新增入库清单
export function addInInfo(data) {
  return request({
    url: '/stock/InInfo',
    method: 'post',
    data: data
  })
}

// 修改入库清单
export function updateInInfo(data) {
  return request({
    url: '/stock/InInfo',
    method: 'put',
    data: data
  })
}

// 删除入库清单
export function delInInfo(id) {
  return request({
    url: '/stock/InInfo/' + id,
    method: 'delete'
  })
}
